var cp = require("child_process");

module.exports = function (next) {
    cp.exec("rm -rf .build/node_modules && rm -rf .build/build.json", function (err) {
        if (err) {
            console.log("reset faild!");
        } else {
            console.log("reset success..");
            if (next && next.length) {
                next.shift()(next);
            }
        }
    }).on("data", function (data) {
        console.log(data);
    });
};